Skip to content

Add chain parameter to Material.get_activity for half-life data#3957

Open
EdenRochmanSharabi wants to merge 1 commit into
openmc-dev:developfrom
EdenRochmanSharabi:feature/get-activity-chain-halflife
Open

Add chain parameter to Material.get_activity for half-life data#3957
EdenRochmanSharabi wants to merge 1 commit into
openmc-dev:developfrom
EdenRochmanSharabi:feature/get-activity-chain-halflife

Conversation

@EdenRochmanSharabi
Copy link
Copy Markdown
Contributor

Summary

  • Add optional chain parameter to Material.get_activity() and Results.get_activity() that accepts a depletion chain (object or path to XML)
  • When provided, half-life values from the chain are preferred over the default ENDF/B-VIII.0 values
  • Nuclides not found in the chain fall back to the default openmc.data.decay_constant()

Test plan

  • Verify get_activity() without chain parameter produces identical results to current behavior
  • Verify get_activity(chain=chain) uses chain half-life values
  • Verify fallback to default values for nuclides not in the chain
  • Verify Results.get_activity(chain=...) passes the parameter through correctly

Closes #3529

When a depletion chain is provided, half-life values from the chain
are preferred over the default ENDF/B-VIII.0 values. This allows
users to compute activity using chain-specific nuclear data. For
nuclides not found in the chain, the default values are used as a
fallback. The same parameter is also added to Results.get_activity.

Closes openmc-dev#3529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openmc.deplete.Results.get_activity() with default half life values from ENDF/B-VIII.0

1 participant